package com.hopes.bizz.risk.transfer.bean.bo;

import com.hopes.bizz.risk.transfer.constant.RiskStatusCode;
import lombok.Data;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/1/31 17:51
 */

@Data
public class RiskTransferResult {

    private Integer code;

    private String msg;

    private RiskTransferBatch obj;

    public RiskTransferResult() {
    }

    public RiskTransferResult(RiskStatusCode riskStatusCode) {
        this.code = riskStatusCode.getCode();
        this.msg = riskStatusCode.getMsg();
    }

    public RiskTransferResult(RiskStatusCode riskStatusCode, String batchId) {
        this.code = riskStatusCode.getCode();
        this.msg = riskStatusCode.getMsg();
        obj = new RiskTransferBatch();
        obj.setBatchId(batchId);
    }
}
